package com.ly.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.reggie.dto.DishDto;
import com.ly.reggie.pojo.Dish;
import org.springframework.stereotype.Service;

public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味，需要操作两张表：Dish，DishFlavor
    public void saveWithFlavor(DishDto dishDto);

    //获取菜品，同时插入菜品对应的口味，需要操作两张表：Dish，DishFlavor
    public DishDto getByIdWithFlavor(Long  id);

    //修改菜品，同时插入菜品对应的口味，需要操作两张表：Dish，DishFlavor
    public void updateWithFlavor(DishDto dishDto);
}
